//
//  PushNAVViewController.m
//  XiongMaoJiaSu
//
//  Created by 徐汉卿 on 16/5/27.
//  Copyright © 2016年 ISOYasser. All rights reserved.
//

#import "PushNAVViewController.h"

@interface PushNAVViewController ()

@end

@implementation PushNAVViewController

- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated
{
    
    
    
    
    
    
    if (self.viewControllers.count == 0) {
        
        viewController.hidesBottomBarWhenPushed = YES;
        
        
        
        
        viewController.navigationItem.leftBarButtonItem = [UIBarButtonItem itemWithTarget:self action:@selector(dissmissSelf) image:@"icon_back" highImage:@"icon_back"];
        
        
        //系统侧拉代码
        
        //        self.interactivePopGestureRecognizer.delegate = nil;
        
    }
    
    [super pushViewController:viewController animated:animated];
    
    
    
}


-(void)dissmissSelf
{
    [self dismissViewControllerAnimated:YES completion:nil];
}

@end
